Repository navigation
The loop theme is the agent theme - #52
Merged
Merged
Conversation
The theme id 'loop' is 'agent', with no alias. loopTheme, loopThemeStyles, loopColors and loopEyes are agentTheme, agentThemeStyles, agentColors and agentEyes, and the other loop* exports follow. The theme's custom properties are --agent-*, and style/loop-face.css is style/agent-face.css. The tests, stories, gallery, README and changelog follow, and the comments no longer carry planning ids.
…hydration, the default standing (a page that remembered 'loop' broke reading an undefined theme)
There was a problem hiding this comment.
🟡 Changes recommended
Removing the loop theme key without migrating persisted current and variant preferences leaves invalid theme values that can crash ThemedProvider on reload or variant activation.
1 open issue
What changed in this PR
Renames the loop theme to agent across Primer Addons’ web and portable interfaces, without compatibility aliases. This breaking change is intended to ship alongside matching consumer updates.
Changes:
- Renames theme identifiers, exports, custom properties, and the font stylesheet.
- Updates existing tests, stories, and gallery text to use Agent naming.
- Refreshes documentation and removes planning identifiers from comments.
| File | Description |
|---|---|
style/agent-face.css |
Renames the stylesheet and updates import guidance. |
src/utils/Portals.tsx |
Removes a planning identifier from a comment. |
src/theme/themeTokens.ts |
Renames the theme entry and palette references. |
src/theme/themes/sunThemeStyles.ts |
Updates the shared-shape comment. |
src/theme/themes/sandThemeStyles.ts |
Updates the shared-shape comment. |
src/theme/themes/roundedShape.ts |
Renames shared radius custom properties. |
src/theme/themes/metalThemeStyles.ts |
Uses renamed Agent styles and properties. |
src/theme/themes/ivoryThemeStyles.ts |
Updates the shared-shape comment. |
src/theme/themes/agentThemeStyles.ts |
Renames style exports and custom properties. |
src/theme/themes/agentTheme.ts |
Renames the Primer theme export. |
src/theme/themeRegistry.ts |
Registers the Agent Primer theme. |
src/theme/portable.ts |
Forwards the renamed eye-geometry module. |
src/theme/palettes/ColorPalette.tsx |
Uses Agent identifiers and colors. |
src/theme/index.ts |
Exports renamed theme and geometry modules. |
src/theme/DatalayerThemeProvider.tsx |
Removes a planning identifier from a comment. |
src/theme/css/primerBaseVars.ts |
Updates theme naming in a comment. |
src/theme/css/createThemeCSSVars.ts |
Removes planning identifiers from documentation. |
src/theme/colors/themeAccents.ts |
Updates comments; accent behavior is unchanged. |
src/theme/colors/metalColors.ts |
Inherits the renamed Agent color keys. |
src/theme/colors/index.ts |
Exports and registers Agent colors. |
src/theme/colors/hueColors.ts |
Renames the theme-specific hue entry. |
src/theme/colors/agentColors.ts |
Renames the color object and branded keys. |
src/theme/agentEyes.ts |
Renames the module and revises wordmark comments. |
src/theme/__tests__/themeStylesheet.test.tsx |
Uses Agent in stylesheet assertions. |
src/theme/__tests__/themeShape.test.ts |
Uses Agent in shared-shape assertions. |
src/theme/__tests__/portable.test.ts |
Checks renamed portable tokens. |
src/theme/__tests__/paletteColors.test.ts |
Uses the Agent palette identifier. |
src/theme/__tests__/metalTheme.test.ts |
Compares Metal against renamed Agent styles. |
src/theme/__tests__/agentType.test.ts |
Renames typography tests and stylesheet references. |
src/theme/__tests__/agentContrast.test.ts |
Renames contrast and motion references. |
src/theme/__tests__/agentClean.test.ts |
Renames visual-rule tests and token references. |
src/reactor/ThemePlugin.ts |
Updates product naming in a comment. |
src/reactor/page-layout/PageLayoutPlugin.ts |
Updates workspace naming in comments. |
src/reactor/page-layout/PageLayout.tsx |
Updates workspace and motion comments. |
src/reactor/index.ts |
Updates workspace naming in documentation. |
src/reactor/__tests__/pagePanelMotion.test.ts |
Checks pane motion under Agent. |
src/components/toolbar/ToolbarButton.tsx |
Updates the control-radius comment. |
src/components/sheet/Sheet.tsx |
Updates the theme example in documentation. |
src/components/logo/DatalayerLogo.tsx |
Renames the logo variant and color references. |
src/components/logo/DatalayerLogo.stories.tsx |
Selects Agent in the logo story. |
src/components/hover-card/HoverCard.tsx |
Updates the theme example in documentation. |
src/components/entity-avatar/EntityAvatar.tsx |
Updates the radius comment. |
src/components/color/ColorSwatch.tsx |
Updates the card-radius comment. |
src/components/card/Card.tsx |
Updates theme naming in documentation. |
src/components/calendar-picker/CalendarPicker.tsx |
Updates the control-radius comment. |
src/components/box/boxTokens.ts |
Updates token comments and removes a planning identifier. |
src/components/box/Box.tsx |
Updates theme examples in documentation. |
src/components/box/Box.stories.tsx |
Updates the corners story comment. |
src/components/box/__tests__/boxCss.test.ts |
Checks renamed hairline and radius properties. |
src/components/appearance/ThemePreviewCard.tsx |
Updates the corner-spacing comment. |
src/components/appearance/ThemePreviewCard.stories.tsx |
Uses Agent as the story default. |
src/components/appearance/ThemeCircle.stories.tsx |
Includes Agent in the theme cycle. |
src/components/appearance/ColorModeCircle.tsx |
Updates the control-shape comment. |
src/components/appearance/CollaboratorPalette.stories.tsx |
Renames the Agent dark-mode story. |
src/components/appearance/AppearanceMenu.stories.tsx |
Uses Agent in the color-mode-only example. |
src/components/appearance/AppearanceControls.tsx |
Updates the control-radius comment. |
src/components/appearance/__tests__/AppearanceColorModeOnly.test.tsx |
Uses Agent in appearance-control tests. |
README.md |
Documents renamed APIs, properties, and examples. |
examples/gallery/src/gallery/GalleryPage.tsx |
Updates the card-radius comment. |
examples/gallery/src/components/PrimerDemo.tsx |
Updates theme guidance in a comment. |
examples/gallery/src/components/HoverCardDemo.tsx |
Updates theme guidance in a comment. |
examples/gallery/src/components/EntityAvatarDemo.tsx |
Updates theme naming in a comment. |
examples/gallery/src/components/CardDemo.tsx |
Updates comments and the overlay caption. |
examples/gallery/src/components/BoxDemo.tsx |
Updates comments and theme-related captions. |
CHANGELOG.md |
Records the breaking rename and migration names. |
.github/workflows/build.yaml |
Removes planning identifiers from comments only. |
Review effort: Balanced
| label: 'Loop', | ||
| description: 'Very clean: one soft accent, neutral everything else. The look of an application built in LOOP.', | ||
| brandColor: loopColors.loopBrand, | ||
| agent: { |
…_THEMES), a person's choice following the renamed theme; the legacy upgrade's anonymous variant is site-anonymous
…y no longer has is dropped, a stored loop read as agent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The
looptheme is renamedagent, with no alias or re-export.'loop'becomes'agent'(ThemeVariant,themeConfigs,themeTokens, the hue and palette tables, the logo variant).loopTheme,loopThemeStyles,loopColors,loopEyesbecomeagentTheme,agentThemeStyles,agentColors,agentEyes; the otherloop*exports and the keys ofagentColors(agentBrand,agentAccent, ...) follow.--loop-*become--agent-*.style/loop-face.cssbecomesstyle/agent-face.css.agentClean,agentContrast,agentTypeand the others), stories, gallery, README and changelog follow. Comments no longer carry planning ids.Breaking for consumers; it ships with the matching rename in its consumers, so it should not be merged on its own.
Tests:
vitest run src, 27 files, 195 tests green.